package com.collect.tanzania.zhiBean.zhiSend;

import com.collect.tanzania.MyApplication;
import com.collect.tanzania.zhiGlobal.zhiAppSettings.ZHIProjectConfigs;
import com.collect.tanzania.zhiGlobal.zhiAppSettings.ZHIProjectConstants;
import com.collect.tanzania.zhiHelper.ZHIAdvertIDHelper;
import com.collect.tanzania.zhiHelper.ZHIDeviceHelper;
import com.collect.tanzania.zhiHelper.ZHIMainProcessHelper;
import com.zhi.syc.data_applist.util.ASNetworkUtil;

import java.io.Serializable;

public class ZHISCaseEntity implements Serializable {

    private String type;
    private String clientType;
    private String sysUserId;
    private String mobile;
    private String language;
    private String leven;
    private String status;
    private String startDate;
    private String endDate;
    private String contactResult;

    private String version;
    private String sysLoginName;
    private String advertId;
    private String ip;
    private String mac;
    private String androidId;
    private String token;
    private String loginId;

    public ZHISCaseEntity(){
        this.version = ZHIProjectConfigs.APP_VERSION;
        this.advertId = ZHIAdvertIDHelper.getInstance().getGoogleAdvertId();
        this.ip = ASNetworkUtil.getIPAddress(MyApplication.getAppContext());
        this.mac = ASNetworkUtil.getMacAddress(MyApplication.getAppContext());
        this.androidId = ZHIDeviceHelper.getInstance().getAndroidID();
        this.token = ZHIMainProcessHelper.getInstance().getToken();
        this.sysLoginName = ZHIMainProcessHelper.getInstance().getFullName();
        this.loginId = ZHIMainProcessHelper.getInstance().getLoginId();

        this.sysUserId = ZHIMainProcessHelper.getInstance().getUserId();
        this.clientType = ZHIProjectConstants.APP_VERSION_CLIENT;
    }

    public ZHISCaseEntity(String type){
        this.type = type;
        this.sysUserId = ZHIMainProcessHelper.getInstance().getUserId();
        this.clientType = ZHIProjectConstants.APP_VERSION_CLIENT;
        this.loginId = ZHIMainProcessHelper.getInstance().getLoginId();

        this.version = ZHIProjectConfigs.APP_VERSION;
        this.advertId = ZHIAdvertIDHelper.getInstance().getGoogleAdvertId();
        this.ip = ASNetworkUtil.getIPAddress(MyApplication.getAppContext());
        this.mac = ASNetworkUtil.getMacAddress(MyApplication.getAppContext());
        this.androidId = ZHIDeviceHelper.getInstance().getAndroidID();
        this.token = ZHIMainProcessHelper.getInstance().getToken();
        this.sysLoginName = ZHIMainProcessHelper.getInstance().getFullName();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getLeven() {
        return leven;
    }

    public void setLeven(String leven) {
        this.leven = leven;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getContactResult() {
        return contactResult;
    }

    public void setContactResult(String contactResult) {
        this.contactResult = contactResult;
    }

    public String getSysUserId() {
        return sysUserId;
    }

    public void setSysUserId(String sysUserId) {
        this.sysUserId = sysUserId;
    }

    public String getSysLoginName() {
        return sysLoginName;
    }

    public void setSysLoginName(String sysLoginName) {
        this.sysLoginName = sysLoginName;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getClientType() {
        return clientType;
    }

    public void setClientType(String clientType) {
        this.clientType = clientType;
    }

    public String getAdvertId() {
        return advertId;
    }

    public void setAdvertId(String advertId) {
        this.advertId = advertId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getAndroidId() {
        return androidId;
    }

    public void setAndroidId(String androidId) {
        this.androidId = androidId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }
}
